package com.nervenets.web.controller.bank;

import com.nervenets.web.controller.TokenParams;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Positive;

@EqualsAndHashCode(callSuper = true)
@Data
public class HoldParams extends TokenParams {
    @ApiModelProperty(value = "楼盘ID", required = true)
    @Positive(message = "楼盘ID不能为空")
    private long buildingId;
    @ApiModelProperty(value = "缴存金额", required = true)
    @Positive(message = "缴存金额必须为正整数")
    private int money;
}
